package com.caregiver.watch.business.care.service;

import com.caregiver.watch.business.care.model.bo.AlertCountBo;
import com.caregiver.watch.business.care.model.po.UserAlertRecord;
import com.github.pagehelper.Page;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description: 用户告警记录服务
 * @Author 疆戟
 * @Date 2025/11/2 15:08
 * @Version 1.0
 */
public interface UserAlertRecordService {

    /**
     * 插入新的预警记录
     */
    boolean insert(UserAlertRecord userAlertRecord);

    /**
     * 获取预警历史列表
     */
    Page<UserAlertRecord> queryWarningHistory(Long userId,
                                              Long recipientId,
                                              LocalDateTime startTime,
                                              LocalDateTime endTime);

    /**
     * 统计预警次数
     */
    List<AlertCountBo> countAlerts(Long userId,
                                   LocalDateTime startTime,
                                   LocalDateTime endTime);
}
